package com.ynunicom.dc.dingdingcontractapp.service;

import com.alibaba.fastjson.JSONObject;
import com.ynunicom.dc.dingdingcontractapp.entity.requestbodyentity.*;

/**
 * @author: jinye.Bai
 * @date: 2020/6/3 8:50
 */
public interface RoleService {

    public JSONObject getRoleList(TransBody<GetRoleListRequestBody> transBody);

    public JSONObject getStaffListByRole(TransBody<GetStaffListByRoleRequestBody> transBody);

    public JSONObject getRoleGroup(TransBody<GetRoleGroupRequestBody> transBody);

    public JSONObject getRoleInfo(TransBody<DelRoleOrGetRoleInfoRequestBody> transBody);

    public JSONObject createRole(TransBody<CreateRoleRequestBody> transBody);

    public JSONObject updateRole(TransBody<UpdateRoleRequestBody> transBody);

    public JSONObject delRole(TransBody<DelRoleOrGetRoleInfoRequestBody> transBody);

    public JSONObject createRoleGroup(TransBody<CreateGroupRequestBody> transBody);

    /**
     * 批量增加员工角色
     * @param transBody
     * @return
     */
    public JSONObject addRolesForStaffs(TransBody<DelOrAddRolesForStaffs> transBody);

    /**
     * 批量删除员工角色
     */
    public JSONObject delRoleForStaffs(TransBody<DelOrAddRolesForStaffs> transBody);

}
